#include <stdio.h>
// #include<iostream>
// using namespace std;
// 线性插值函数
double linepoint(double x1, double y1, double x2, double y2, double x) 
{
  double k = (y2 - y1) / (x2 - x1);
  double b = y1 - k * x1;

  return k * x + b;  
}

int main() 
{

  double x1=0, y1; 
  double x2 , y2 ;
  double x; 
  scanf("%d%d%d%d%d",&x1,&y1,&x2,&y2,&x);
  
    // cin>>x1>>y1>>x2>>y2>>x;
  
  double y = linepoint(x1, y1, x2, y2, x);
  
  printf("插值点坐标:(%d, %d)\n", x, y);

  return 0;
}